namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 公差校验表
    /// </summary>
    [SugarTable("tolerance_check_info")]
    public class ToleranceCheckInfo : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        [SugarColumn(ColumnName = "product_type")]
        public string ProductType { get; set; }

        [SugarColumn(ColumnName = "item_no")]
        public int ItemNo { get; set; }

        [SugarColumn(ColumnName = "item_name")]
        public int ItemName { get; set; }

        /// <summary>
        /// 内容分组（一个类型的放一起）
        /// </summary>
        [SugarColumn(ColumnName = "content_group")]
        public string ContentGroup { get; set; }

        /// <summary>
        /// 内容名称
        /// </summary>
        [SugarColumn(ColumnName = "content_name")]
        public string ContentName { get; set; }

        /// <summary>
        /// 基准值
        /// </summary>
        [SugarColumn(ColumnName = "standard_value")]
        public decimal StandardValue { get; set; }

        /// <summary>
        /// 上限值
        /// </summary>
        [SugarColumn(ColumnName = "up_limit_value")]
        public decimal UpLimitValue { get; set; }

        /// <summary>
        /// 下限值
        /// </summary>
        [SugarColumn(ColumnName = "down_limit_value")]
        public decimal DownLimitValue { get; set; }

        /// <summary>
        /// 范围结果
        /// </summary>
        [SugarColumn(ColumnName = "result")]
        public int Result { get; set; }

        /// <summary>
        /// 范围描述
        /// </summary>
        [SugarColumn(ColumnName = "result_remark")]
        public string ResultRemark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }
    }
}